widget: Parent widgets may also consume motions
authorTimm Bäder <mail@baedert.org>
Wed, 21 Nov 2018 16:51:10 +0000 (17:51 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 27 Nov 2018 04:37:38 +0000 (05:37 +0100)
commitb7963a06ab87a1b1591de3800bda889ba30f05e1
tree1d82fab76f6d4b4036a8da9225c17584cfad1ec1
parenteeeefb40c7b84f0afc891898e57ce30ef3ca828a
widget: Parent widgets may also consume motions

This is important when the target widget of an event is not the one that
would otherwise receive the gesture. For example, the GtkSwitch
implementation currently attaches a pan gesture to the switch itself,
but the target widget below the pointer might be the switch slider or
label.

See #1465
gtk/gtkwidget.c